<?php

namespace app\client\controller;

use app\client\services\RedPacketService;

class Redpacket extends \app\BaseController
{
    protected $middleware=['CheckClientTokenMiddleware'];

    /**
     * 获取红包
     * @return void
     */
    public function getRedPacket(){
        RedPacketService::getRedPacket($this->request->adminUid);
    }

    /**
     * 核验红包
     * @return void
     */
    public function check(){
        RedPacketService::check($this->request->adminUid);
    }
    public function getLimit(){
        api_return(200,'',['limit'=>RedPacketService::getLimit($this->request->adminUid)]);
    }
}
